package day05;

import javax.swing.*;
import java.util.Arrays;
import java.util.List;

public class SeasonTest {
    public static void main(String[] args) {

        Season1 spring = Season1.Autumn;
        System.out.println(spring);
        System.out.println(Season1.class.getSuperclass());
        Season1[] values = Season1.values();
        for(int i = 0; i < values.length; i++) {
            System.out.println(values[i]);

        }



        List<int[]> ar1 = Arrays.asList(new int[]{123,4,45});
        System.out.println(ar1);

    }

enum Season1{
    Spring("spring","flower"),
    Summer("summer","sun"),
    Autumn("autumn","leaf"),
    Winter("winter","snow");

    private final String seasonName;
    private final String seasonDesc;

    private Season1(String seasonName, String seasonDesc) {
        this.seasonName = seasonName;
        this.seasonDesc = seasonDesc;
    }
    public String getSeasonname(){

        return seasonName;
    }

    public String getSeasonDesc(){
        return seasonDesc;
    }


    @Override
    public String toString() {
        return "Season1{" +
                "seasonName='" + seasonName + '\'' +
                ", seasonDesc='" + seasonDesc + '\'' +
                '}';
    }

}



}


//class Season{
//
//    private final String seasonName;
//    private final String seasonDesc;
//
//    private Season(String seasonName, String seasonDesc) {
//        this.seasonName = seasonName;
//        this.seasonDesc = seasonDesc;
//    }
//
//    public static final Season Spring = new Season("spring","flower");
//    public static final Season Summer = new Season("summer","sun");
//    public static final Season Autumn = new Season("autumn","leaf");
//    public static final Season Winter = new Season("winter","snow");
//
//    public String getSeasonname(){
//
//        return seasonName;
//    }
//
//    public String getSeasonDesc(){
//        return seasonDesc;
//    }
//
//
//    @Override
//    public String toString() {
//        return "Season{" +
//                "seasonName='" + seasonName + '\'' +
//                ", seasonDesc='" + seasonDesc + '\'' +
//                '}';
//    }
//}